<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>
        <%= htmlWebpackPlugin.options.title %>
    </title>
    <script>
        document.addEventListener('DOMContentLoaded', function () {
            document.documentElement.style.fontSize = document.documentElement.clientWidth / 20 + 'px'
        })
        var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') || CSS.supports('top: constant(a)'))
        document.write('<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' + (coverSupport ? ', viewport-fit=cover' : '') + '" />')
    </script>
    <link rel="stylesheet" href="<%= BASE_URL %>static/index.<%= VUE_APP_INDEX_CSS_HASH %>.css" />

    <!-- 调试 -->
    <script>
        // document.write('<script src="https://files.esurl.cn/public/js/eruda.min.js"><\/script>');
        // document.write('<script>eruda.init();<\/script>');
    </script>
</head>

<body>
    <noscript>
        <strong>Please enable JavaScript to continue.</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
</body>
<script type="text/javascript" src="https://open.esurl.cn/jsapi/wxconfig/167?v=1"></script>
<script>
let js_appid,timestamp,nonceStr,signature;
    let obj = {
        js_appid,
        timestamp,
        nonceStr,
        signature,
    }
    sessionStorage.setItem('offObj', JSON.stringify(obj));

    // input 输入框失焦 IOS 视图复原
    let  isReset = true;
    document.body.addEventListener('focusin', function () {
        isReset = false;
    });
    document.body.addEventListener('focusout', function () {
        isReset = true;
        setTimeout(function () {
            if (isReset) {
                window.scroll(0, 0);
            }
        }, 300);
    });
</script>

</html>